package com.alumni_circle.entity.home;

import com.alumni_circle.core.entity.BaseDO;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 龙小虬
 * @since 2020-07-06 20:37
 *
 * @EqualsAndHashCode(callSuper = true) 用于两个对象比较
 * 当@EqualsAndHashCode(callSuper = true)时，两个对象比较需要比较父类中的属性
 * 当@EqualsAndHashCode(callSuper = false)时，两个对象比较不需要比较父类属性
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Sponsor extends BaseDO {

    @ApiModelProperty(value = "发布单位")
    private String unit;

    @ApiModelProperty(value = "传播形式")
    private String spread;

    @ApiModelProperty(value = "金额")
    private Integer money;

    @ApiModelProperty(value = "赞助内容")
    private String content;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "浏览量")
    private Integer views;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "删除")
    @TableLogic
    private String state;
}
